package com.cqjtu.drive.mapper;

import com.cqjtu.drive.pojo.Coach;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CoachMapper {

    Coach getCoachById(String cId);
    Coach getCoachByUserId(String userId);
    void insertCoach(Coach coach);

    void updateCoach(Coach coach);

    void deleteCoach(String cId);

    List<Coach> getAllCoaches();

    List<Coach> getCoachesByName(String cName);

}
